import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
// 导入日文语言包
import ja from 'element-plus/es/locale/lang/ja'
import './mine.css'

const app = createApp(App)

// 自定义分页文字
ja.el.pagination = {
  total: '合計 {total} 件',
  goto: '移動',
  pageClassifier: 'ページ目',
  pagesize: '件/ページ',
  next: '次へ',
  prev: '前へ',
  jumper: 'ジャンプ'
}


app.use(router)
// 使用 Element Plus 并设置日文语言
app.use(ElementPlus, {
  locale: ja,
})


// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')